/*
 * SCOR.cpp
 *
 * Author: Cristian Avramescu
 */

#include "Robot.h"
#include <stdio.h>
bool Robot::connect(const char * file)
{
	return (communication.Ouvrir(file)
			&& communication.ConfigurerPort(Communication::CCOM_BR9600, Communication::CCOM_8_BITS,
										 Communication::CCOM_NONE, Communication::CCOM_1_BIT));
}

void Robot::move(int leftSpeed, int rightSpeed)
{
	communication.SetVitesseRoues(leftSpeed, rightSpeed);
}
